package com.hd.core.project.module.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;

/**
 * 模块的基本属性
 */
@ConditionalOnWebApplication
public class BaseModuleProperties {

    //基本路径
    @Value("${module.basePath}")
    private String basePath;

    //模块的模板访问路径前缀
    private String pathPrefix;

    //上传的文件访问路径
    @Value("${module.fileDataSaveDiskPath}")
    private String fileDataSaveDiskPath;

    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    public String getPathPrefix() {
        return pathPrefix;
    }

    public void setPathPrefix(String pathPrefix) {
        this.pathPrefix = pathPrefix;
    }

    public String getFileDataSaveDiskPath() {
        return fileDataSaveDiskPath;
    }

    public void setFileDataSaveDiskPath(String fileDataSavePath) {
        this.fileDataSaveDiskPath = fileDataSavePath;
    }
}
